﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace QL_NOI_TRU.Entities
{
    class NhanVien
    {

        private int _maNV;

        public int MA_NV
        {
            get { return _maNV; }
            set { _maNV = value; }
        }

        private string _hoten;

        public string HOTEN
        {
            get { return _hoten; }
            set { _hoten = value; }
        }

        private string _soCMND;

        public string SOCMND
        {
            get { return _soCMND; }
            set { _soCMND = value; }
        }

        private string _gioitinh;

        public string GIOITINH
        {
            get { return _gioitinh; }
            set { _gioitinh = value; }
        }

        private string _ngaysinh;

        public string NGAYSINH
        {
            get { return _ngaysinh; }
            set { _ngaysinh = value; }
        }

        private string _diachi;

        public string DIACHI
        {
            get { return _diachi; }
            set { _diachi = value; }
        }

        private string _sodienthoai;

        public string SODIENTHOAI
        {
            get { return _sodienthoai; }
            set { _sodienthoai = value; }
        }

        private string _makhoa;

        public string MA_KHOA
        {
            get { return _makhoa; }
            set { _makhoa = value; }
        }

        private string _maph;

        public string MAPH
        {
            get { return _maph; }
            set { _maph = value; }
        }

        private string _chucdanh;

        public string CHUCDANH
        {
            get { return _chucdanh; }
            set { _chucdanh = value; }
        }

        private string _chucvu;

        public string CHUCVU
        {
            get { return _chucvu; }
            set { _chucvu = value; }
        }

           public NhanVien()
        {
        }

        public NhanVien(int MA, string MAKHOA, string MA_PH, string HO_TEN,string SO_CMND,string GIOI_TINH,string NGAY_SINH,string DIA_CHI,string SO_DIENTHOAI,string CHUC_DANH,string CHUC_VU)
        {
            this._maNV = MA;
            this._makhoa = MAKHOA;
            this._maph = MA_PH;
            this._hoten = HO_TEN;
            this._soCMND = SO_CMND;
            this._gioitinh = GIOI_TINH;
            this._ngaysinh = NGAY_SINH;
            this._diachi = DIA_CHI;
            this._sodienthoai = SO_DIENTHOAI;
            this._chucdanh = CHUC_DANH;
            this._chucvu = CHUC_VU;

        }

        public NhanVien(string MAKHOA, string MA_PH, string HO_TEN, string SO_CMND, string GIOI_TINH, string NGAY_SINH, string DIA_CHI, string SO_DIENTHOAI, string CHUC_DANH, string CHUC_VU)
        {
            this._makhoa = MAKHOA;
            this._maph = MA_PH;
            this._hoten = HO_TEN;
            this._soCMND = SO_CMND;
            this._gioitinh = GIOI_TINH;
            this._ngaysinh = NGAY_SINH;
            this._diachi = DIA_CHI;
            this._sodienthoai = SO_DIENTHOAI;
            this._chucdanh = CHUC_DANH;
            this._chucvu = CHUC_VU;

        }
        public NhanVien(DataRow row)
        {
            this._maNV =(int)row["MA_NV"];
            this._makhoa = row["MA_KHOA"].ToString();
            this._maph = row["MAPH"].ToString();
            this._hoten = row["HOTEN"].ToString();
            this._soCMND = row["SOCMND"].ToString();
            this._gioitinh = row["GIOITINH"].ToString();
            this._ngaysinh = row["NGAYSINH"].ToString();
            this._diachi = row["DIACHI"].ToString();
            this._sodienthoai = row["SODIENTHOAI"].ToString();
            this._chucdanh = row["CHUCDANH"].ToString();
            this._chucvu = row["CHUCVU"].ToString();
        }
    }
}
